// api
import * as api from './service'

const plugin = [
  {
    label: '$api',
    value: api
  }
]

const install = Vue => {
  if (install.installed) return
  plugin.map(element => {
    Object.defineProperty(Vue.prototype, element.label, {
      value: element.value
    })
  })
}

export default {
  install
}
